package com.worldtolearn.user.dao;

import org.hibernate.SessionFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.orm.hibernate3.support.HibernateDaoSupport;

import com.worldtolearn.user.entity.Role;

/*
 * TODO A decommenter
 */

//@Repository
//public class RoleDAO extends HibernateDaoSupport implements IRoleDAO {
public class RoleDAO {
//
//	@Autowired
//	public void init(SessionFactory factory) {
//	    setSessionFactory(factory);
//	}
//	
//	
//	public RoleDAO() {
//		// TODO Auto-generated constructor stub
//	}
//
//	@Override
	public void create(Role role) {
//		// TODO Auto-generated method stub
//		getHibernateTemplate().save(role);
//		SingletonLogger.monLogger.info("The role has been successfully created!");
	}

//	@Override
	public Role read(int id) {
		// TODO Auto-generated method stub
		return null;
	}
//
//	@Override
	public void update(Role role) {
		// TODO Auto-generated method stub
//		getHibernateTemplate().update(role);
//		SingletonLogger.monLogger.info("The role has been successfully update!");
	}
//
//	@Override
	public void delete(Role role) {
		// TODO Auto-generated method stub
//		getHibernateTemplate().delete(role);
//		SingletonLogger.monLogger.info("The role has been successfully deleted!");
	}
//
}
